package com.android.lovingpet.bean;

public class JsonTeam {

    private int code;
    private TeamProfile teamProfile;
    private TeamHead teamHead;
    private TeamInfo teamInfo;

    public int getCode() {
        return code;
    }

    public Team getTeam() {
        Team team = new Team();
        team.setRealId(teamProfile.id);
        team.setAdoptRules(teamProfile.adoptRules);
        team.setFinance(teamProfile.finance);
        team.setP_introduction(teamProfile.introduction);
        team.setJobRules(teamProfile.jobRules);
        team.setPurpose(teamProfile.purpose);
        team.settCondition(teamProfile.tCondition);
        team.setWork(teamProfile.work);
        team.sethIntroduction(teamHead.hIntroduction);
        team.sethName(teamHead.hName);
        team.sethPhone(teamHead.hPhone);
        team.setIdCard(teamHead.idCard);
        team.setRealName(teamHead.realName);
        team.setAddress(teamInfo.address);
        team.setCodeNumber(teamInfo.codeNumber);
        team.setEmail(teamInfo.email);
        team.setEtime(teamInfo.etime);
        team.setGrade(teamInfo.grade);
        team.setImage(teamInfo.image);
        team.setIntroduction(teamInfo.introduction);
        team.setName(teamInfo.name);
        team.setNature(teamInfo.nature);
        team.setoPhone(teamInfo.oPhone);
        team.setProof(teamInfo.proof);
        return team;
    }

    private static class TeamProfile {
        private String adoptRules;
        private String finance;
        private int id;
        private String introduction;
        private String jobRules;
        private String purpose;
        private String tCondition;
        private String work;
    }

    private static class TeamHead {
        private String hIntroduction;
        private String hName;
        private String hPhone;
        private int id;
        private String idCard;
        private String realName;
    }

    private static class TeamInfo {
        private String address;
        private String codeNumber;
        private String email;
        private String etime;
        private int grade;
        private int id;
        private String image;
        private String introduction;
        private String name;
        private String nature;
        private String oPhone;
        private String proof;
    }
}
